package com.xh.Test;


import com.xh.dao.impl.UserDaoimpl;
import com.xh.entity.User;

public class Test01 {
    public static void main(String[] args){

//        UserDaoimpl userDaoimpl = new UserDaoimpl();
//        int wang = userDaoimpl.add("wang", "123456");
//        System.out.println("影响行数"+wang);

        User user = new User();
        user.setUsername("chang");
        user.setPassword("123456");
        UserDaoimpl userDaoimpl = new UserDaoimpl();
        int add = userDaoimpl.add(user);
        System.out.println("影响行数"+add);
    }
}
